# Maintainer: Bradley Saulteaux <bradsoto@gmail.com>
pkgname=j4-dmenu-desktop
pkgver=2.17
pkgrel=0
pkgdesc="A fast desktop menu"
options="!check" # Requires a desktop-style system layout not present in builders
url="https://github.com/enkore/$pkgname"
arch="all"
license="GPL-3.0-only"
depends="dmenu"
makedepends="cmake git"
source="$pkgname-$pkgver.tar.gz::$url/archive/r$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-r$pkgver

build() {
	cmake -DCMAKE_INSTALL_PREFIX=/usr .
	make
}

check() {
	# Test depends on /usr/share/applications existing on the system
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="7a41bb60a6b3afa7bf6229f08674d5f31e0152d0788a17edc210986d1b1f0d4fad13ffaa13c58ed7a0c5d2e67f8f95bb2a0f6556aeb0f2cc24c7d885b346325e  j4-dmenu-desktop-2.17.tar.gz"
